package com.example.demo.Util;


import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;

public class ConcurrentUtil {

    public static void doJob(ExecutorService executorService, java.lang.Runnable runnable) {
        executorService.submit(runnable);
    }

    public static Future doJobCall(ExecutorService executorService, Callable callable) {
        return executorService.submit(callable);
    }
}
